<template>
  <ul class="footer"  v-show="$route.meta.navShow">
    <router-link to="/" tag='a'>
      <span class="iconfont icon-shouye"></span>
      <span>首页</span>
    </router-link>

    <router-link to="/show" tag='a'>
      <span class="iconfont icon-sort"></span>
      <span>商品分类</span>
    </router-link>

    <router-link to="/cart" tag='a'>
      <span class="iconfont icon-gouwuche"></span>
      <span>购物车</span>
    </router-link>

    <router-link to="/my" tag='a'>
      <span class="iconfont icon-wode"></span>
      <span>我的</span>
    </router-link>
  </ul>
</template>

<script>
  export default {
    name: 'footer',
    data() {
      return {
        msg: 'Welcome to Your Vue.js App'
      }
    }
  }
</script>

<style type="text/scss" lang="scss" scoped>
  @import "../common/style/iconfont.css";
  .footer {
    background-color: #FFFFFF;
    border-top: 1px solid #e3e3e3;
    color: gray;
    height: 49px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    z-index: 9999;
    a {
      color: gray;
      display: flex;
      flex-direction: column;
      text-align: center;
      border: none;
      box-sizing: border-box;
      span {
        display: block;
        width: 100%;
        height: 50%;
      }
      span:first-child {
        font-size: 20px !important;
        margin-top: 5px;
      }
      span:last-child {
        font-size: 10px;
      }
    }
  }
</style>
